As some people may have read from my earlier posts, I am creating a Readme-like dialog box. I have been able, with the help of a lot of people on this forum, to get the majority of the items I need to do in my rich text dialog box including making certain text bold. Now, I have one last item where I need to indent some text similar to a bullet (like using the "Increase Indent" button on the menu bar above): This is a test of using the "Increase Indent" button above. The text is indented similar to how a bullet would, but does not include the bullet symbol. If the text extends to more than one line, each succeeding line is indented as well.
If you reduce the width of the browser window, you can see that the text aligns to the left indent.
I have seen code in the manual that can check for bullets, but I haven't been able to find a way to actually set the actual paragraphs to be indented. If someone can please point me in the right direction, I would be grateful.
Chris chrscote - Wed May 10 14:36:29 EDT 2017 |
Re: Adding bulletted items to richText box Might be easiest to use the function: string applyTextFormattingToParagraph(string s, bool addBullets, int indentLevel, int paraNumber) Indent level is in twips...you'll want around 360 twips for each indent level. |